package com.zero.test1;

public class Student extends Person{
    private String className;
    private String stuId;

    public Student() {

    }

    public Student(String name, String age, String gender, String className, String stuId) {
        super(name, age, gender);
        this.className = className;
        this.stuId = stuId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getStuId() {
        return stuId;
    }

    public void setStuId(String stuId) {
        this.stuId = stuId;
    }
    @Override
    public void eat(){
        System.out.println("吃食堂");
    }
    public void study(){
        System.out.println( getName() + "在学习");
    }
}
